local M = {}

M.get_default_mappings = function(helper,actions)
    return {
        n = {
            ["<CR>"] = helper.select_by_enter,
            ["<M-v>"] = actions.select_vertical,
            -- use tab instead
            ["j"] = function() end,
            ["k"] = function() end,
        }, -- n
        i = {
            ["<Tab>"] = function(prompt_bufnr)
                actions.move_selection_next(prompt_bufnr)
            end,
            ["<CR>"] = helper.select_by_enter,
            ["<M-v>"] = actions.select_vertical,
            ["<Esc>"] = actions.close,
            ["<M-h>"] = "which_key",
            ["<C-p>"] = actions.cycle_history_prev,
            ["<C-n>"] = actions.cycle_history_next,
            ["<C-v>"] = function() vim.cmd "normal! p" vim.cmd "startinsert!" end,
            ["<C-b>"] = function() vim.cmd "normal! ^" end,
            ["<C-e>"] = function() vim.cmd "startinsert!" end,
            ["<C-c>"] = function() vim.cmd "normal! ggdG" end,
        }, -- i
    }
end

return M
-- EOP
